lionsApp.config(function ($stateProvider, $urlRouterProvider) {
    $urlRouterProvider
        .when('', '/home')
    $stateProvider
        .state('home', {
            title: '京狮公益基金',
            url: '/home',
            views: {
                'mainView': {
                    templateUrl: 'templates/home/home.html',
                    controller: 'homeCtrl'
                }
            }
        })
        .state('detail', {
            title: '京狮公益基金',
            url: '/detail/:id',
            views: {
                'mainView': {
                    templateUrl: 'templates/detail/detail.html',
                    controller: 'detailCtrl'
                }
            }
        })
        .state('projectDonatedList', {
            title: '京狮公益基金',
            url: '/project/:id',
            views: {
                'mainView': {
                    templateUrl: 'templates/detail/donated-list.html',
                    controller: 'listCtrl'
                }
            }
        })
        .state('success', {
            title: '我的捐款',
            url: '/success',
            views: {
                'mainView': {
                    templateUrl: 'templates/success/success.html',
                    controller: 'successCtrl'
                }
            }
        })
        .state('mine', {
            title: '我的捐款',
            url: '/mine',
            views: {
                'mainView': {
                    templateUrl: 'templates/mine/mine.html',
                    controller: 'mineCtrl'
                }
            }
        })
        .state('rankingTeam', {
            title: '服务队捐款排行榜',
            url: '/ranking/team',
            views: {
                'mainView': {
                    templateUrl: 'templates/ranking/team/team.html',
                    controller: 'ranking-teamCtrl'
                }
            }
        })
        .state('rankingPersonal', {
            title: '个人捐款排行榜',
            url: '/ranking/personal',
            views: {
                'mainView': {
                    templateUrl: 'templates/ranking/personal/personal.html',
                    controller: 'ranking-personalCtrl'
                }
            }
        })
        .state('rankingAll', {
            title: '京狮公益基金排行榜',
            url: '/ranking/all',
            views: {
                'mainView': {
                    templateUrl: 'templates/ranking/all/all.html',
                    controller: 'ranking-allCtrl'
                }
            }
        })
        .state('allDone', {
            title: '全员捐款服务队',
            url: '/alldone',
            views: {
                'mainView': {
                    templateUrl: 'templates/all-done/all-done.html',
                    controller: 'alldoneCtrl'
                }
            }
        })
        .state('accredit', {
            title: '授权成功',
            url: '/accredit',
            views: {
                'mainView': {
                    templateUrl: 'templates/accredit/accredit.html',
                    controller: 'accreditCtrl'
                }
            }
        })
})